<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>间隔线的制作</title>
    <style>
        body{
            background-color: #000;
        }
        .container{

        }
        .container .item{
            display: inline-block;
            color: #fff;
            text-decoration: none;
            padding: 0px 20px;
            margin: 10px 0;
        }
        .container .item:not(:nth-child(1)){
            border-left: 1px solid #333;
        }
    </style>
</head>
<body>
    <div class="container">
        <a href="" class="item">sometext</a>
        <a href="" class="item">sometext</a>
        <a href="" class="item">sometext</a>
        <a href="" class="item">sometext</a>
        <a href="" class="item">sometext</a>
    </div>
</body>
</html>